package com.bbzn.device.client.dao.audit;

import com.bbzn.device.client.dataobject.AuditNotice;
import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface AuditNoticeMapper {
    /**
     * delete by primary key
     *
     * @param noticeId primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Long noticeId);

    /**
     * insert record to table
     *
     * @param record the record
     * @return insert count
     */
    int insert(AuditNotice record);

    int insertOrUpdate(AuditNotice record);

    int insertOrUpdateSelective(AuditNotice record);

    /**
     * insert record to table selective
     *
     * @param record the record
     * @return insert count
     */
    int insertSelective(AuditNotice record);

    /**
     * select by primary key
     *
     * @param noticeId primary key
     * @return object by primary key
     */
    AuditNotice selectByPrimaryKey(Long noticeId);

    /**
     * update record selective
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(AuditNotice record);

    /**
     * update record
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(AuditNotice record);

    List<AuditNotice> findByAll(AuditNotice auditNotice);

    AuditNotice findOneByProcessFlowId(@Param("processFlowId") Long processFlowId);

    int updateBatch(List<AuditNotice> list);

    int updateBatchSelective(List<AuditNotice> list);

    int batchInsert(@Param("list") List<AuditNotice> list);

    AuditNotice findOneByNoticeId(@Param("noticeId") Long noticeId);
}